import {defineStore} from 'pinia'
import { ref } from 'vue'
export const useTabBar = defineStore(
 'tabBar',
 ()=>{
  let tabBarName =  ref('首页')
  const settingName = (item:string):void=>{
    if(item.includes('-')){
      tabBarName.value = item.split('-').join('/')
    }
    else{

      tabBarName.value = item
    }
  }
  return {
    tabBarName,
    settingName
  }
 }
)